package org.example.server.goods.repo;

import org.example.api.goods.goods.request.AddGoodsRequest;
import org.example.api.goods.goods.request.DeleteGoodsRequest;
import org.example.api.goods.goods.request.GoodsSearchRequest;
import org.example.frw.api.base.intf.ID;
import org.example.server.goods.repo.doo.GoodsFatDetailDo;
import org.example.server.goods.repo.doo.GoodsListItemDo;

import java.util.List;

public interface GoodsRepoInterface {
  List<GoodsListItemDo> pageGoods(GoodsSearchRequest request);

  ID addGoods(AddGoodsRequest request);

  GoodsFatDetailDo fatDetail(Long id);

  Long goodsCount(GoodsSearchRequest request);

  void deleteGoods(DeleteGoodsRequest request);
}
